using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class SportTeamInfo
    {
        #region CONSTRUCTORS
        public SportTeamInfo()
        {

            this.m_teamID = Util.NULL_INT;
            this.m_teamName = Util.NULL_STRING;
            this.m_teamCode = Util.NULL_STRING;
            this.m_teamCodeOpen = Util.NULL_STRING;
            this.m_msg1 = Util.NULL_STRING;
            this.m_msg2 = Util.NULL_STRING;
            this.m_msg3 = Util.NULL_STRING;
            this.m_msg4 = Util.NULL_STRING;
            this.m_msg5 = Util.NULL_STRING;
            this.m_type = Util.NULL_BYTE;
            this.m_status = Util.NULL_BYTE;
        }

        public SportTeamInfo(int teamID, string teamName, string teamCode, string teamCodeOpen, string msg1, string msg2, string msg3, string msg4, string msg5, byte type, byte status)
        {
            this.m_teamID = teamID;
            this.m_teamName = teamName;
            this.m_teamCode = teamCode;
            this.m_teamCodeOpen = teamCodeOpen;
            this.m_msg1 = msg1;
            this.m_msg2 = msg2;
            this.m_msg3 = msg3;
            this.m_msg4 = msg4;
            this.m_msg5 = msg5;
            this.m_type = type;
            this.m_status = status;
        }

        public SportTeamInfo(DataRow dRow)
        {
            this.m_teamID = (int)Util.ReplaceDBNullTo(dRow["teamID"], Util.NULL_INT);
            this.m_teamName = Util.ReplaceDBNullTo(dRow["teamName"], Util.NULL_STRING).ToString();
            this.m_teamCode = Util.ReplaceDBNullTo(dRow["teamCode"], Util.NULL_STRING).ToString();
            this.m_teamCodeOpen = Util.ReplaceDBNullTo(dRow["teamCodeOpen"], Util.NULL_STRING).ToString();
            this.m_msg1 = Util.ReplaceDBNullTo(dRow["msg1"], Util.NULL_STRING).ToString();
            this.m_msg2 = Util.ReplaceDBNullTo(dRow["msg2"], Util.NULL_STRING).ToString();
            this.m_msg3 = Util.ReplaceDBNullTo(dRow["msg3"], Util.NULL_STRING).ToString();
            this.m_msg4 = Util.ReplaceDBNullTo(dRow["msg4"], Util.NULL_STRING).ToString();
            this.m_msg5 = Util.ReplaceDBNullTo(dRow["msg5"], Util.NULL_STRING).ToString();
            this.m_type = (byte)Util.ReplaceDBNullTo(dRow["Type"], Util.NULL_BYTE);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private int m_teamID;
        private string m_teamName;
        private string m_teamCode;
        private string m_teamCodeOpen;
        private string m_msg1;
        private string m_msg2;
        private string m_msg3;
        private string m_msg4;
        private string m_msg5;
        private byte m_status;
        private byte m_type;
        #endregion

        #region PROPERTIES
        public int TeamID
        {
            get
            {
                return this.m_teamID;
            }
            set
            {
                this.m_teamID = value;
            }
        }

        public string TeamName
        {
            get
            {
                return this.m_teamName;
            }
            set
            {
                this.m_teamName = value;
            }
        }

        public string TeamCode
        {
            get
            {
                return this.m_teamCode;
            }
            set
            {
                this.m_teamCode = value;
            }
        }

        public string TeamCodeOpen
        {
            get
            {
                return this.m_teamCodeOpen;
            }
            set
            {
                this.m_teamCodeOpen = value;
            }
        }

        public string Msg1
        {
            get
            {
                return this.m_msg1;
            }
            set
            {
                this.m_msg1 = value;
            }
        }

        public string Msg2
        {
            get
            {
                return this.m_msg2;
            }
            set
            {
                this.m_msg2 = value;
            }
        }

        public string Msg3
        {
            get
            {
                return this.m_msg3;
            }
            set
            {
                this.m_msg3 = value;
            }
        }

        public string Msg4
        {
            get
            {
                return this.m_msg4;
            }
            set
            {
                this.m_msg4 = value;
            }
        }

        public string Msg5
        {
            get
            {
                return this.m_msg5;
            }
            set
            {
                this.m_msg5 = value;
            }
        }

        public byte Type
        {
            get
            {
                return this.m_type;
            }
            set
            {
                this.m_type = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}